package easy;

public class a1470_重新排列数组 {
    public int[] shuffle(int[] nums, int n) {
        if (nums.length == 0 || n == 0) {
            return nums;
        }
        int[] arr = new int[n * 2];

        for (int i = 0; i < n; i++) {
            arr[2 * i] = nums[i];
            arr[2 * i + 1] = nums[n+i];
        }
        return arr;
    }
}
